<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<div th:replace="~{fragment/headFragment :: head}"></div>
<body class="cbp-spmenu-push">
	<div class="main-content">

<!--		<div th:replace="~{fragment/left-border :: left}"></div>-->

		<div th:replace="~{fragment/header2 :: header2}"></div>

		<div id="page-wrapper" style="margin: 0;">
			<div class="main-page signup-page">
				<h3 class="title1">编辑工单</h3>
<!--				<p class="creating">编辑工单</p>-->
				<div class="sign-up-row widget-shadow">
					<form th:action="@{workOrder/bianji(id=${wo.id})}" method="post">
					<h5 th:text="'工单id >> ' + ${wo.id}">Personal Information :</h5>
					<div class="sign-u">
						<div class="sign-up1">
							<h4>工单分类*:</h4>
						</div>
						<div class="sign-up2">
							<select name="worktype" class="form-control">
<!--								<option>请选择</option>-->
								<option value="分类一" th:selected="${'分类一'eq(wo.worktype)}">分类一</option>
								<option value="分类二" th:selected="${'分类二'eq(wo.worktype)}">分类二</option>
								<option value="分类三" th:selected="${'分类三'eq(wo.worktype)}">分类三</option>
							</select>
						</div>
						<div class="clearfix"> </div>
					</div>
					<div class="sign-u">
						<div class="sign-up1">
							<h4>工单标题 :</h4>
						</div>
						<div class="sign-up2">
							<input type="text" class="form-control" name="title" th:value="${wo.getTitle()}">
						</div>
						<div class="clearfix"> </div>
					</div>
					<div class="sign-u">
						<div class="sign-up1">
							<h4>工单描述 :</h4>
						</div>
						<div class="sign-up2">
<!--							<input type="text" name="nickname" required>-->

							<textarea class="form-control" name="orderdesc" rows="2" id="value1" th:placeholder="${wo.getOrderdesc()}"></textarea>
						</div>
						<div class="clearfix"> </div>
					</div>
					<div class="sign-u">
						<div class="sign-up1">
							<h4>抄送人 :</h4>
						</div>
						<div class="sign-up2">
							<select name="cclist" class="form-control">
<!--								<option>请选择</option>-->
								<option value="七尾" th:selected="${'七尾'eq(wo.cclist)}">七尾</option>
								<option value="小白" th:selected="${'小白'eq(wo.cclist)}">小白</option>
								<option value="小亮" th:selected="${'小亮'eq(wo.cclist)}">小亮</option>
								<option value="小丽" th:selected="${'小丽'eq(wo.cclist)}">小丽</option>
								<option value="小明" th:selected="${'小明'eq(wo.cclist)}">小明</option>
							</select>
						</div>
						<div class="clearfix"> </div>
					</div>
<!--					<h6>Login Information :</h6>-->
					<div class="sign-u">
						<div class="sign-up1">
							<h4>优先级* :</h4>
						</div>
						<div class="sign-up2">
<!--							<input type="password" name="password" id="pw1" required>-->
							<label for="recipient-name" class="control-label">优先级:&nbsp&nbsp</label>
							<input type="radio" name="priority" value="低" th:checked="${'低'eq(wo.priority)}">低&nbsp&nbsp&nbsp&nbsp</input>
							<input type="radio" name="priority" value="中" th:checked="${'中'eq(wo.priority)}">中&nbsp&nbsp&nbsp&nbsp</input>
							<input type="radio" name="priority" value="高" th:checked="${'高'eq(wo.priority)}">高&nbsp&nbsp&nbsp&nbsp</input>
							<input type="radio" name="priority" value="紧急" th:checked="${'紧急'eq(wo.priority)}">紧急</input>
						</div>
						<div class="clearfix"> </div>
					</div>
					<div class="sign-u">
						<div class="sign-up1">
							<h4>工单状态* :</h4>
						</div>
						<div class="sign-up2">
<!--							<input type="password" id="pw2" onkeyup="validate()" required>-->
							<select name="state" class="form-control">
<!--								<option>请选择</option>-->
								<option th:selected="${'未分配'eq(wo.state)}">未分配</option>
								<option th:selected="${'未处理'eq(wo.state)}">未处理</option>
								<option th:selected="${'待处理'eq(wo.state)}">待处理</option>
								<option th:selected="${'处理中'eq(wo.state)}">处理中</option>
								<option th:selected="${'已解决'eq(wo.state)}">已解决</option>
								<option th:selected="${'已关闭'eq(wo.state)}">已关闭</option>
							</select>
							<span id="tishi"></span>
						</div>
						<div class="clearfix"> </div>
					</div>
					<div class="sub_home">
							<input type="submit" value="确定" id="submit"  onClick="delcfm()">
						<div class="clearfix"> </div>
					</div>
					</form>

					<script language="javascript">
						function delcfm() {
							if (!confirm("确认要编辑？")) {
								window.event.returnValue = false;
							}
						}
					</script>

					<!--					<script>-->
<!--						function validate() {-->
<!--							var pw1 = document.getElementById("pw1").value;-->
<!--							var pw2 = document.getElementById("pw2").value;-->
<!--							if(pw1 == pw2) {-->
<!--								document.getElementById("tishi").innerHTML="<font color='green'>两次密码相同</font>";-->
<!--								document.getElementById("submit").disabled = false;-->
<!--							}-->
<!--							else {-->
<!--								document.getElementById("tishi").innerHTML="<font color='red'>两次密码不相同</font>";-->
<!--								document.getElementById("submit").disabled = true;-->
<!--							}-->
<!--						}-->
<!--					</script>-->
				</div>
			</div>
		</div>
		<!--footer-->
		<div class="footer">
		   <p>Copyright &copy; 2017.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a></p>
		</div>
        <!--//footer-->
	</div>
	<!-- Classie -->
		<script src="js/classie.js"></script>
		<script>
			var menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
				showLeftPush = document.getElementById( 'showLeftPush' ),
				body = document.body;
				
			showLeftPush.onclick = function() {
				classie.toggle( this, 'active' );
				classie.toggle( body, 'cbp-spmenu-push-toright' );
				classie.toggle( menuLeft, 'cbp-spmenu-open' );
				disableOther( 'showLeftPush' );
			};
			
			function disableOther( button ) {
				if( button !== 'showLeftPush' ) {
					classie.toggle( showLeftPush, 'disabled' );
				}
			}
		</script>

<!--	<script>-->
<!--		document.getElementById("value1").valueO("${wo.orderdesc}")-->
<!--	</script>-->
	<!--scrolling js-->
	<script src="js/jquery.nicescroll.js"></script>
	<script src="js/scripts.js"></script>
	<!--//scrolling js-->
	<!-- Bootstrap Core JavaScript -->
	<script src="js/bootstrap.js"> </script>
</body>
</html>